You are here: Protection monitoring > SNMP > Configuring SNMP on your server

Configuring SNMP on your server

SNMP must be installed, configured, and working on your server.

  1. Stop the SNMP daemon (snmpd).
  2. Make a backup copy of the SNMP configuration file snmpd.conf.
  3. In order to run the Double-Take Availability sub-agent, master agentx is needed to turn on agentx. Add the master agent line to snmpd.conf.

    master agentx

  4. So that the SNMP daemon can locate the Double-Take Availability MIB, add the path to the Double-Take Availability MIB by adding an entry to the snmp.conf file.

    mibfile /usr/share/snmp/mibs/NSI-DT-MIB.txt

  5. Restart the SNMP daemon (snmpd).
  6. Start the master agent.

    #snmpd -f -Le -x /var/agentx/master &

  7. Start the Double-Take Availability SNMP sub-agent.

    #DTSubAgent >& /dev/null &

    Instead of starting the master agent and Double-Take Availability sub-agent separately, you can add them both to init.d to start them automatically.

     

  8. You can test SNMP by trying either of the following commands.

    #snmpget -v2c -c public localhost dtGeneral.dtUpTime.0

    #snmpget -v2c -c public localhost NSI-MIB::dtUpTime

Related Topics